package com.ecoolex.union.pay.retailer.core.manager;

import com.ecoolex.union.pay.retailer.core.dao.PaymentChannelConfigDAO;
import com.ecoolex.union.pay.retailer.entity.PaymentChannelConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentChannelConfigManager {
	
    @Autowired
    private PaymentChannelConfigDAO dao;
    
    public PaymentChannelConfig getByPayType(Integer payType) {
    	return dao.selectByPrimaryKeyWithLogicalDelete(payType, PaymentChannelConfig.NOT_DELETED);
    }
}